package face.pay.wxpay.service;

import face.pay.entity.MchPayCode;
import face.pay.util.ResultMessage;
import org.springframework.ui.Model;

public interface IPayAuthService {

    /**
     * 获取授权url
     *
     * @param deviceId
     * @return
     */
    String getPayAuthUrl(String deviceId);

    /**
     * 授权回调
     *
     * @param code
     * @param deviceId
     * @param model
     */
    void wxCallback(String code, String deviceId, Model model);


    /**
     * 二维码绑定设备
     *
     * @param mchPayCode
     * @return
     */
    ResultMessage register(MchPayCode mchPayCode);
}
